package Deom7;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-19
 * Time: 22:46
 */
public class Test2 {
    public static Animal func() {
        return new Dog("小黑");
    }
    public static void main(String[] args) {
        func().eat();
        func().sleep();
    }
}
